package com.eastfair.venueservice.dto;

import com.eastfair.venueservice.enumeration.ServiceLossLossSourceEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Size;
import lombok.Data;
import com.eastfair.venueservice.enumeration.ServiceLossGoodsLossStateEnum;
import com.eastfair.venueservice.enumeration.ServiceLossReworkStateEnum;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * <p>
 * 实体类
 * 报损记录
 * </p>
 *
 * @author linan
 * @since 2022-09-19
 */
@Data
@ApiModel(value = "ServiceLossUpdateDTO", description = "报损记录")
public class ServiceLossDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 是否启用（确认状态）：1是 已确认；0否 未确认
     */
    @ApiModelProperty(value = "是否启用（确认状态）：1是 已确认；0否 未确认")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 库存编码
     */
    @ApiModelProperty(value = "库存编码")
    @Size(max = 255, message = "库存编码长度不能超过255")
    private String inventoryCode;
    /**
     * 报损类型 #{SEVERE_DAMAGE:严重损坏;PARTIAL_DAMAGE:部分损坏;SLIGHT_DAMAGE:轻微损坏}
     */
    @ApiModelProperty(value = "报损类型 #{SEVERE_DAMAGE:严重损坏;PARTIAL_DAMAGE:部分损坏;SLIGHT_DAMAGE:轻微损坏}")
    private ServiceLossGoodsLossStateEnum goodsLossState;
    /**
     * 返修入库状态 #{NO:未返修入库;YES:已返修入库}
     */
    @ApiModelProperty(value = "返修入库状态 #{NO:未返修入库;YES:已返修入库}")
    private ServiceLossReworkStateEnum reworkState;
    /**
     * 损坏数量
     */
    @ApiModelProperty(value = "损坏数量")
    private BigDecimal lossNum;
    /**
     * 报损来源 #{IN_INVENTORY:入库报损;RETURN_SERVICE:归还报损}
     */
    @ApiModelProperty(value = "报损来源 #{IN_INVENTORY:入库报损;RETURN_SERVICE:归还报损}")
    private ServiceLossLossSourceEnum lossSource;
    /**
     * 报损日期
     */
    @ApiModelProperty(value = "报损日期")
    private LocalDate lossTime;
    /**
     * 报损经办人
     */
    @ApiModelProperty(value = "报损经办人")
    private Long lossOperator;
    /**
     * 报损经办人姓名
     */
    @ApiModelProperty(value = "报损经办人姓名")
    private String lossOperatorName;
    /**
     * 返修入库日期
     */
    @ApiModelProperty(value = "返修入库日期")
    private LocalDate repairTime;
    /**
     * 返修经办人
     */
    @ApiModelProperty(value = "返修经办人")
    private Long repairOperator;
    /**
     * 返修经办人姓名
     */
    @ApiModelProperty(value = "返修经办人姓名")
    private String repairOperatorName;

    /**
     * 服务名称
     */
    @ApiModelProperty(value = "服务名称")
    private String serviceName;
    /**
     * 规格
     */
    @ApiModelProperty(value = "商品规格")
    private String serviceSpecsName;
    /**
     * 服务分类
     */
    @ApiModelProperty(value = "服务分类")
    private Long serviceCategoryId;
    /**
     * 查询借用开始时间
     */
    @ApiModelProperty(value = "报损操作开始时间")
    private String lossStartTime;
    /**
     * 操作借用结束分类
     */
    @ApiModelProperty(value = "报损操作结束时间")
    private String lossEndTime;
    /**
     * 展会ID
     */
    @ApiModelProperty(value = "展会ID")
    private Long exhibitionManageId;
    /**
     * 服务商ID
     */
    @ApiModelProperty(value = "服务商ID")
    private Long serviceProviderId;
    /**
     * 服务商类型
     */
    @ApiModelProperty(value = "服务商类型")
    private String serviceProviderType;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;
}
